package com.hn.kiss.modules.sys.shopdubbo.dubbo.service;

import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.stereotype.Component;

@Component
@Service  //注意这个com.alibaba.dubbo.config.annotation.Service;包下的
public class DubboServiceimpl implements DubboService {
    @Override
    public String test(String str) {
        System.out.println("**********dubbo调用成功*************");
        System.out.println(str);
        return str + "-Dubbo";
    }
}
